<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-04-20
 * Time: 17:42
 */

namespace App\Services;

/**
 * 优惠券
 * Interface ICouponService
 * @package App\Services
 */
interface ICouponService
{

    /**
     * 优惠券列表
     * @param array $wheres
     * @return mixed
     */
    public function all(array $wheres = []);

    /**
     * 优惠券键值名称对列表
     * @param array $wheres
     * @return mixed
     */
    public function getCoupleList();

    /**
     * 已发放领取列表
     * @param array $wheres
     * @return mixed
     */
    public function receiveList(array $wheres = []);

    /**
     * 创建优惠券
     * @return mixed
     */
    public function create($vaildtype,$name,$vaildday,$starttime,$endtime,$money,$fullmoney,$count,$stoptime);

    /**
     * 编辑优惠券
     */
    public function edit($coupon_id,$vaildtype, $name, $vaildday, $starttime, $endtime, $money, $fullmoney, $count, $stoptime);

    /**
     * 发放优惠券
     * @param $merchant_id
     * @param $coupon_id
     * @param $count
     * @return mixed
     */
    public function assign($merchant_id,$coupon_id,$count);

}